// 导入vueRouter
import Vue from "vue";
import VueRouter from "vue-router";
import test1 from "@/page/test1";
import test2 from "@/page/test2";
import home from "@/page/home";
import test3 from "@/page/test3";
import test4 from "@/page/test4";
import test5 from "@/page/test5";


// 使用路由
Vue.use(VueRouter)
// 创建Vue router实例
const router = new VueRouter({
    routes :[
        {
            path: "/test1",
            name:'test1',
            component: test1,
        },
        {
            path: "/test2",
            name:'test2',
            component: test2,
        },
        {
            path: "/test3",
            name:'test3',
            component: test3,
        },
        {
            path: "/test4",
            name:'test4',
            component: test4,
        },
        {
            path: "/test5",
            name:'test5',
            component: test5,
        }

    ]
})

//5.导入路由实例
export default router
